import 'package:flutter/material.dart';
import 'package:flutter_eve_plugin/components/ye_xiu/rank/rank_item.dart';
import 'package:flutter_eve_plugin/model/ye_xiu/rank/rank_info.dart';
import 'package:flutter_eve_plugin/utils/image_util.dart';
import 'package:flutter_eve_plugin/utils/screen_util.dart';

class RankFooterWidget extends StatelessWidget {
  final SelfRank selfRank;

  const RankFooterWidget({
    Key key,
    this.selfRank,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      width: MediaQuery.of(context).size.width,
      height: setRatio(60),
      decoration: BoxDecoration(
          image: DecorationImage(
              image: AssetImage(imageUtilYeXiu('rank/icon_rank_footer@3x')),
              fit: BoxFit.fill)),
      child: RankItemWidget(rankUser: selfRank.userInfo,index: selfRank.rankingPos,),
    );
  }
}
